import request from '@/utils/request';

const basePath = '/appsys/microapps';
// 获取分页数据
export function listMicroAppByPage(param) {
  return request({
    url: `${basePath}/search/v1`,
    data: param,
    method: 'post'
  });
}
// 保存表单数据
export function saveMicroApp(form) {
  return request({
    url: `${basePath}/saveList/v1`,
    data: form,
    method: 'post'
  });
}

// 根据id集合删除数据
export function delMicroApp(ids) {
  return request({
    url: `${basePath}/delete-by-ids/${ids}/v1`,
    data: ids,
    method: 'delete'
  });
}
